﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>改变上传文件控件的样式</title>
    <style type="text/css">
        #myInput{border:1px solid #0000FF;}
        #myBtn{width:90px;height:21px;font-size:12px;padding-top:3px;border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-right:1px solid #666666;border-bottom:1px solid #666666}
    </style>
    
</head>
<body>

<input type="text" id="myInput" > <input type="button" id="myBtn" value="选择上传的文件">
<input type="file" id="myfile" onchange="myInput.value=this.value" style="width:0;position:absolute;left:43mm;filter:alpha(opacity=10)">

</body>
</html>